//
//  SleepHeartTypeView.swift
//  DaRings
//
//  Created by 易先生 on 2022/11/14.
//

import UIKit
import MYModule

class SleepHeartTypeView: View {

    let icon = ImageView()
    let titleLabel = Label()
    
    override func makeUI() {
        super.makeUI()
        
        icon.layer.cornerRadius = 11/2.0
        titleLabel.textColor = UIColor.assist_222222
        titleLabel.font = Fonts.systemFont(ofSize: 10)
       
        addSubview(icon)
        addSubview(titleLabel)
        
        
        icon.snp.makeConstraints { make in
            make.left.equalToSuperview()
            make.centerY.equalToSuperview()
            make.size.equalTo(11)
            make.bottom.lessThanOrEqualToSuperview()
        }
        
        titleLabel.snp.makeConstraints { make in
            make.left.equalTo(icon.snp.right).offset(4)
            make.centerY.equalToSuperview()
            make.right.equalToSuperview()
            make.bottom.lessThanOrEqualToSuperview()
        }
    }
}
